<%= form_for(@answer) do |f| %>
  <% if @answer.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@answer.errors.count, "error") %> prohibited this answer from being saved:</h2>

      <ul>
      <% @answer.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :target_question_box_id %><br />
    <%= f.number_field :target_question_box_id %>
  </div>
  <div class="field">
    <%= f.label :voter_id %><br />
    <%= f.number_field :voter_id %>
  </div>
  <div class="field">
    <%= f.label :answer_numberic %><br />
    <%= f.number_field :answer_numberic %>
  </div>
  <div class="field">
    <%= f.label :answer_text %><br />
    <%= f.text_field :answer_text %>
  </div>
  <div class="field">
    <%= f.label :answer_yn %><br />
    <%= f.check_box :answer_yn %>
  </div>
  <div class="field">
    <%= f.label :unit_id %><br />
    <%= f.number_field :unit_id %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
